<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // do{
        //     循环体;
        // }while(表达式)




        var sun = 0;
        var sum = 0;
        do {
            sun += sum;
            sum++;
        } while (sum <= 100)
        console.log(sun);
    </script>
</body>

</html>